package glass;

import java.awt.Graphics;

import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.SwingUtilities;

public class Frame extends JFrame{
	
	
	
	public Frame(){
		
		
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setSize(280, 240);
        setLocationRelativeTo(null);
        setTitle("Glass");
        setResizable(false);
       
	
		
		
        
	}
	
	public static void main(String[] args) {
        SwingUtilities.invokeLater(new Runnable(){
        	
        	@Override
        	public void run(){
        		Frame f = new Frame();
        		
        		
        		Glass g = new Glass();
        		
        		f.add(new JButton("Hello"));
        		f.setGlassPane(g);
                f.setVisible(true);
                g.setVisible(true);
                Graphics sg = g.getGraphics();
                Missile m = new Missile(g);
                f.add(m);
                //m.setVisible(true);
        	}
        });
		
		new Frame();
    }
}
